package net.maku.express.biza.pojo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author wenyignying
 * @package net.maku.express.biza.pojo.enums
 * @date 2023-12-15 14:57:10
 * @description:出仓状态
*/
@AllArgsConstructor
@Getter
public enum PackHourseEnum {
    NO(1,"未出仓"),
    YES(2,"已出仓");
    private int code;
    private String value;

    public static boolean getCodeFlag(int status){
        for(PackStateEnum pe:PackStateEnum.values()){
            if(pe.getCode() == status){
                return true;
            }
        }
        return false;
    }
}
